package com.carleasoft.mps.adu.business.role.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.carleasoft.mps.core.tree.DataBizTreeVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>Description: Menu dao</p>
 *
 * @author ztm
 * @since 2021-09-16
 */
@Repository
public interface AuthorityPermMenuDao extends BaseMapper<DataBizTreeVo> {

    /**
     * 通过角色Codes查询菜单集合,isMarking表示要过滤掉菜单的类型
     *
     * @param menuCodes，isMarking
     * @return List<AuthorityMenuEntity>
     */
    List<DataBizTreeVo> selectMenusByMenuCodes(@Param("menuCodes") List<String> menuCodes, @Param("isMarking") Integer isMarking, @Param("menuClassify") Integer menuClassify);

    /**
     * 通过roleCode查询菜单集合,isMarking表示要过滤掉菜单的类型
     *
     * @return List<AuthorityMenuEntity>
     */

    List<String> selectMenusCodeByRoleCodes(@Param("roleCodes") List<String> roleCodes, @Param("isMarking") Integer isMarking, @Param("menuClassify") Integer menuClassify, @Param("isQueryHide") Boolean isQueryHide);

}
